home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13112 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  937 b 

  1. Path: htsa.htsa.hva.nl!not-for-mail
  2. From: ferdinan@htsa.htsa.hva.nl (Ferdinand de Boevere)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Storing C Functions In An Array?
  5. Date: 4 Apr 1996 20:01:48 +0200
  6. Organization: Hogeschool van Amsterdam, The Netherlands, E.E. & C.S. Dept.
  7. Message-ID: <4k12qc$epc@oege.htsa.hva.nl>
  8. References: <4jc1u7$5e9@infa.central.susx.ac.uk> <4jerhn$sc8@oege.htsa.hva.nl> <4jj5d0$me8@news.xs4all.nl>
  9. NNTP-Posting-Host: oege.htsa.hva.nl
  10.  
  11. In article <4jj5d0$me8@news.xs4all.nl>, Falstaff <falstaff@xs4all.nl> wrote:
  12. >ferdinan@htsa.htsa.hva.nl (Ferdinand de Boevere) writes:
  13.  
  14. >I remember one entry in an early Obfuscated C Programming Contest.
  15. >It declared main something like this:
  16.  
  17. >int main[]=
  18. >{  5236,736,8,-547,'f', 
  19.  
  20. >and it actually ran on PDPs and VAXen.  So it *can* be done :-)
  21.  
  22. No, it can't be done !
  23. This was probably nothing but declaring an array called main
  24. inside another function (e.g. main).
  25.  
  26. Ferdinand
  27.  
  28.